package com.zzh.partnersys.constant;

/**
 * @author ??????
 * @version 1.0
 */
public class UserConstant {
    /**
     * 用户登录状态缓存key
     */
    public static String USER_LOGIN_STATE = "userLoginState";

    /**
     * 推荐用户缓存key的前缀
     */
    public static String USER_CACHE_RECOMMEND_KEY = "partnerKing:user:recommend:";

    /**
     * 用户信息缓存key的前缀
     */
    public static String USER_CACHE_INFO_KEY = "partnerKing:user:info:";

    /**
     * ʱRedisson??֤һִм??
     */
    public static String USER_LOCK_JOB_RECOMMEND_KEY = "partnerKing:lock:recommendJob:";
    public static String USER_LOCK_JOB_TEAM_USER_MAP_KEY = "partnerKing:lock:teamIdUserIdJob:";

    /**
     *עRedisson??֤һִм??β)
     */
    public static String USER_LOCK_REGISTER_EMAIL_KEY = "partnerKing:lock:register:email:";
    /**
     * ֻעRedisson??֤һִм??β)
     */
    public static String USER_LOCK_REGISTER_PHONE_KEY = "partnerKing:lock:register:phone:";

    /**
     *ûʹֻŷ֤洢redis??
     */
    public static String USER_LOCK_CODE_PHONE_KEY = "code:phone:";
    /**
     *ûʹ䷢֤洢redis??
     */
    public static String USER_LOCK_CODE_EMAIL_KEY = "code:email:";

    /**
     *ûλûkey
     */
    public static String USER_CACHE_LOCATION_KEY = "partnerKing:findUser:location";




    //   ----------  Ȩ  -----------
    /**
     * ĬȨ
     */
    public static int DEFALUT_ROLE = 0;
    /**
     *ԱȨ??
     */
    public static int ADMIN_ROLE = 1;

}
